package com.jdz.gxq.info.admin.project.service;

import java.util.List;
import java.util.Map;

import com.jdz.gxq.info.admin.project.bo.SignedProject;

public interface SignedProjectService {
	
	/**
	 * SignedProject检索分页用，查询记录条数
	 * @return
	 */
	public int getSignedProjectsCount(String projectName);
	
	/**
	 * SignedProject检索
	 * @return
	 */
	public List<SignedProject> getSignedProjects(Map<String, Object> params);
	
	/**
	 * 追加SignedProject
	 * @param signedProject
	 */
	public void insertSignedProject(SignedProject signedProject);
	
	/**
	 * 更新SignedProject
	 * @param signedProject
	 */
	public void updateSignedProject(SignedProject signedProject);
	
	/**
	 * 通过id得到signedProject
	 * @param id
	 * @return
	 */
	public SignedProject getSignedProjectById(int projectId);
	
	/**
	 * 删除SignedProject
	 * @param signedProject
	 */
	public void deleteSignedProject(SignedProject signedProject);
	
	/**
	 * 验证signedProjectName是否重复
	 * (重复返回:false)
	 * flag: 1 追加时验证
	 * flag: 2 更新时验证
	 */
	public boolean checkSignedProjectName(SignedProject paramSignedProject, int flag);

}
